import agentFramework.action.Action;
import agentFramework.agent.Agent;
import agentFramework.core.env.Environment;


public class IrishAction extends Action
{
	public final static int			TYPE_STAY_HOME = 0;
	public final static int			TYPE_GO_TO_THE_PUB = 1;
	
	
	// constructor
	public IrishAction(int type) 
	{
		super(type);
	}

	@Override
	public String toString()
	{
		return "" + this.getType();
	}
	
	 
	public String toString2()
	{
		return (this.getType() == 0) ? ("STAY_HOME") : ("GO_TO_THE_PUB");
	}

	
	@Override
	public void execute(Environment env, Agent a) 
	{
		// DO NOTHING	
	}

	// converts the action description to an Action object
	public static Action toAction(String actionString)
	{
		return new IrishAction(Integer.parseInt(actionString));
	}
	 
	public boolean equals(Object o)
	{
		IrishAction a = (IrishAction) o;
		
		return (a.getType() == this.getType());
	}
}
